package com.ruoyi.car.mapper;

import com.ruoyi.car.controller.admin.CarCustomer.vo.CarCustomerReq;
import com.ruoyi.car.controller.admin.CarCustomer.vo.CarCustomerResp;
import com.ruoyi.car.entity.CarCustomer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 11452
* @description 针对表【car_customer(客户信息表)】的数据库操作Mapper
* @createDate 2023-06-06 11:24:14
* @Entity com.ruoyi.car.entity.CarCustomer
*/
@Mapper
public interface CarCustomerMapper extends BaseMapper<CarCustomer> {
    /**
     * 多表查询
     * @param req
     * @return
     */
    List<CarCustomerResp> search(@Param(value = "req") CarCustomerReq req);

    /**
     * 自定义组件查询
     * @param id
     * @return
     */
    CarCustomerResp findById(Long id);
}




